package com.itheima.home_work.bank_credit;

import java.util.Scanner;

public class BankReferenceTest {

    public static void main(String[] args) {
        CreditAssessmentSystem creditAssessmentSystem = new CreditAssessmentSystem();
        Scanner scanner = new Scanner(System.in);

        // 添加客户信息
        boolean noStop = true;
        while (noStop) {
            System.out.println("===银行征信系统===");
            System.out.println("1：查询客户征信");
            System.out.println("2：查询所有客户征信");
            System.out.println("3：退出");
            System.out.println("请录入");
            final String type = scanner.next();
            switch (type){
                case "1":
                    System.out.println("请输入银行账号");
                    String id = scanner.next();
                    creditAssessmentSystem.findAssessCreditById(id);
                    break;
                case "2":
                    creditAssessmentSystem.findAssessCredit();
                    break;
                case "3":
                    noStop = false;
                    break;
                default:
                    System.out.println("输入有误！");
                    break;
            }
        }

    }
}
